
    import {
        DIC
    } from '@/const/dic';
    import Store from '../../store/';
    const allPermission = Store.state.user.permission;
    const isAdmin = Store.state.user.userInfo.superAdmin;
    export const bankSettingsTableOption = {
        border: false,
        index: false,
        selection: true,
        calcHeight: 220,
        columnBtn:false,
        searchClearable: false,
        selectClearBtn: false,
        searchResetBtn: false,
        height:"auto",
        menu: true,
        menuAlign: "center",
        searchBtn: true,
        labelWidth: 120,
        refreshBtn: true,
        tip:false,
        addBtn: isAdmin || !!allPermission['/admin/bank_settings/add'],
        dialogWidth: '600px',
        dialogHeight: 'auto',
        menuWidth: 180,
        editBtn: isAdmin || !!allPermission['/admin/bank_settings/modify'],
        viewBtn: false,
        delBtn: isAdmin || !!allPermission['/admin/bank_settings/delete'],
        column: [
    {
        "label": "银行名称",
        "prop": "bankName",
        "search": false,
        "type": "text",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 20,
        "display": true,
        "hide": false,
        "rules": [
            {
                "required": true,
                "message": "请输入银行名称",
                "trigger": "blur"
            }
        ]
    },
    // {
    //     "label": "银行背景色",
    //     "prop": "bankColorBg",
    //     "search": false,
    //     "type": "text",
    //     "fixed": false,
    //     "width": "auto",
    //     "row": true,
    //     "minWidth": "120",
    //     "readonly": false,
    //     "span": 20,
    //     "display": true,
    //     "hide": false,
    //     "rules": [
    //         {
    //             "required": true,
    //             "message": "请输入银行背景色",
    //             "trigger": "blur"
    //         }
    //     ]
    // },
    // {
    //     "label": "银行logo",
    //     "prop": "bankLogo",
    //     "search": false,
    //     "type": "upload",
    //     "fixed": false,
    //     "width": "auto",
    //     "row": false,
    //     "minWidth": "120",
    //     "readonly": false,
    //     "span": 12,
    //     "display": true,
    //     "hide": false,
    //     "listType": "picture-img",
    //     "showFileList": false,
    //     "imgHeight": 60,
    //     "imgWidth": "auto",
    //     "action": "_/admin/upload/image",
    //     "tip": "只能上传jpg/png文件，且不超过500kb",
    //     "rules": [
    //         {
    //             "required": true,
    //             "message": "请上传银行logo",
    //             "trigger": "blur"
    //         }
    //     ]
    // },
    {
        "label": "创建时间",
        "prop": "createTime",
        "search": false,
        "type": "datetime",
        "fixed": false,
        "width": "170",
        "row": false,
        "readonly": false,
        "span": 12,
        "display": false,
        "hide": false,
        "format": "yyyy-MM-dd HH:mm:ss",
        "valueFormat": "yyyy-MM-dd HH:mm:ss"
    },
    {
        "label": "创建人",
        "prop": "creator",
        "search": false,
        "type": "text",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": false,
        "hide": false
    },
    {
        "label": "修改时间",
        "prop": "modifyTime",
        "search": false,
        "type": "datetime",
        "fixed": false,
        "width": "170",
        "row": false,
        "readonly": false,
        "span": 12,
        "display": false,
        "hide": false,
        "format": "yyyy-MM-dd HH:mm:ss",
        "valueFormat": "yyyy-MM-dd HH:mm:ss"
    },
    {
        "label": "修改人",
        "prop": "modifier",
        "search": false,
        "type": "text",
        "fixed": false,
        "width": "auto",
        "row": false,
        "minWidth": "120",
        "readonly": false,
        "span": 12,
        "display": false,
        "hide": false
    }
]
    };
